<?php
namespace _Persoonbeheer\Controller;
class Index  extends \Controller {
    public function index() {
        $this->_view = new \_Persoonbeheer\Views\View();
        
        $this->_view->genereer('_Persoonbeheer','Index','index');
        \Weergave::SETTEMPLATE('backend');
        \Weergave::GENEREER();
    }
    public function getPagina(){
        $this->_model = new \_Persoonbeheer\Model\Index();
        echo json_encode($this->_model->index());
        
    }
    public function getInfo(){
        $this->_model = new \_Persoonbeheer\Model\Info();
        //print_r($this->_model->index());
        echo json_encode($this->_model->index());
    }
}
